<div id="box_high">
    <form method="post" accept-charset="utf-8" action="<?php echo site_url(uri_string().'/cols')?>">

        <div><p class="title_high"><?php echo lang('preferences_edit_cols');?></p></div>
        <div class="em">
            <table class="preferences">
                <tr>
                    <?php foreach ($table_cols as $col): ?>
                    <th>
                        <?php  echo anchor('manager/squad/order/'.$col->col_label, img(array('src' => img_module('table_cols/'.get_lang('label').'/'.$col->col_label.'.png'))), array('class' => '')); ?>
                    </th>
                    <?php endforeach; ?>

                </tr>
                <tr>
                    <?php foreach ($preferences_table_cols as $preferences_table_col): ?>
                    <td><?php echo form_checkbox($preferences_table_col->col_id, 'accept', $preferences_table_col->checked); ?></td>
                    <?php endforeach; ?>
                </tr>
            </table>
        </div>
        <input type="submit" name="submit" value="<?php echo lang('label_save_changes');?>" class="button" />
    </form>
</div>

<div id="box_high_color">

    <div><p class="title_high"><?php echo lang('preferences_edit_positions');?></p></div>
    <form method="post" accept-charset="utf-8" action="<?php echo site_url(uri_string().'/roles')?>">
        <div class="em">
            <table class="preferences">
                <?php foreach ($roles as $role): ?>
                <tr>
                    <?php if($role->default_role):?>
                    <td><?php echo ($role->role); ?></td>
                    <?php else: ?>
                    <td><?php echo form_input($role->id, $role->role);?></td>
                    <?php endif;?>
                    <td>
                        <input type="color" name="color_<?php echo $role->id;?>" value="<?php echo $role->bg_color?>">
                    </td>
                </tr>
                <?php endforeach; ?>
            </table>
        </div>
        <input type="submit" name="submit" value="<?php echo lang('label_save_changes');?>" class="button" />
    </form>
</div>